<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>DLKIT网站管理系统</title>
<link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/css/login.css" />
</head>
<script src="__PUBLICURL__/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLICURL__/ui/asyncbox/asyncbox.min.js?skin=default"></script>
<script language="javascript">
//重载验证码
function fleshVerify()
{
var timenow = new Date().getTime();
document.getElementById('verifyImg').src= '__URL__/verify.html?'+timenow;
}

//ajax登录
function post_login()
{
//ajax提交
$.ajax({
  type: 'POST',
  url: "__URL__/login",
  data:{user: $('#user').attr('value'),password: $('#password').attr('value'),checkcode: $('#checkcode').attr('value')},
  dataType: "json",
  success: function(json) {
	if(json.result==1){//成功
	window.location.href="__APP__"; 
	}else{
	asyncbox.error(json.msg,'{lang='登录信息'}'); 
	}
	
  }
})

}

</script>
<body>
<div id="login">
  <div class="warp">
    <div class="content">
      <h1></h1>
      <div class="form">
        <div class="item">
          <div class="input">
            <div class="icon" title="{lang='用户名'}"></div>
            <input value="" tabindex="1" id="user" type="text" name="user" />
          </div>
          <label>{lang='用户名'}：</label>
        </div>
        <div class="item">
          <div class="input">
            <div class="icon2" title="{lang='密码'}"></div>
            <input value="" tabindex="2" id="password" type="password" name="password" />
          </div>
          <label>{lang='密码'}：</label>
        </div>
        <div class="item">
          <div style="width:120px;" class="input">
            <div class="icon2" title="{lang='验证码'}"></div>
            <input style="width:100px !important" value="" tabindex="3" id="checkcode" type="text" name="checkcode" />
          </div>
          <label>{lang='验证码'}：</label>
          <label style="margin-left:15px;"><img src="__URL__/verify" border="0" align="absmiddle" height="20" width="50" style="margin-left:3px;" alt="{lang='如果您无法识别验证码，请点图片更换'}" onClick="fleshVerify()" id="verifyImg"/></label>
        </div>
        <input name="do" type="hidden" value="yes" />
        <input type="submit" tabindex="4" value="" class="submit" onClick="post_login()" />
      </div>
      <p class="copyright">Powered by DLKIT [sys:ver] Copyright © 2012</p>
    </div>
  </div>
</div>
</body>
</html>